#include "patientfiledao.h"
#include <QString>
#include <vector>
#include <cstdio>
#include <cstdlib>

using namespace std;

PatientFileDAO::PatientFileDAO()
{
}

vector<double> getSignals (QString path) {
    vector<double> scales;
    FILE *scaleFile = fopen ("..\\Patients\\scaleValues.dat", "r");

    double temp;
    while (fscanf (scaleFile, "%f", &temp)) {
        scales.push_back (temp);
    }
    fclose(scaleFile);

    FILE *datas = fopen (path.toAscii(), "r");
    int i=0;
    vector<double>res;
    while (fscanf (datas, "%f", &temp)) {
        res.push_back(temp);
    }
    //for (int i=0;)
    return res;
}
